package com.eeds.interceptor;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 
 * 时间  2018年1月22日 下午6:44:47
 * @author sunjg
 */
@Configuration
public class MyWebMvcConfigurer extends WebMvcConfigurerAdapter {

	@Autowired
	private AuthInterceptor authInterceptor;
	
	@Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(authInterceptor).addPathPatterns("/**").excludePathPatterns("*.html","*.htm","*.js","*.css","/error","/admin/*");
        super.addInterceptors(registry);
    }
	
}
